package org.jeecg.modules.operations.assistant.vehicle.service.impl;

import org.jeecg.modules.operations.assistant.vehicle.entity.VehicleInfo;
import org.jeecg.modules.operations.assistant.vehicle.mapper.VehicleInfoMapper;
import org.jeecg.modules.operations.assistant.vehicle.service.IVehicleInfoService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @Description: 车辆信息
 * @Author: jeecg-boot
 * @Date:   2024-06-30
 * @Version: V1.0
 */
@Service
public class VehicleInfoServiceImpl extends ServiceImpl<VehicleInfoMapper, VehicleInfo> implements IVehicleInfoService {
    @Resource
    private VehicleInfoMapper vehicleInfoMapper;

    /**
     * @功能：清空所有车辆信息
     */
    @Override
    @Transactional(rollbackFor = Exception.class)
    public void removeAll() {
        vehicleInfoMapper.removeAll();
    }
}
